package com.letoken.platform.repo.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.po.AdminFundConfig;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-08-04
 */
public interface AdminFundConfigMapper extends BaseMapper<AdminFundConfig> {
    @Select("SELECT SUM(amount)/2 FROM app_fund_v2_detail WHERE create_time>=#{startTime} and create_time<=#{endTime} and type=1")
    BigDecimal getFundBankList(@Param("startTime")String startTime,@Param("endTime")String endTime);
}
